package com.wangwen.wechatmp.base;

import com.github.binarywang.wxpay.bean.request.WxPayOrderQueryRequest;
import com.github.binarywang.wxpay.bean.request.WxPayRefundRequest;
import com.github.binarywang.wxpay.bean.result.WxPayMicropayResult;
import com.github.binarywang.wxpay.bean.result.WxPayOrderQueryResult;
import com.github.binarywang.wxpay.bean.result.WxPayRefundResult;
import com.wangwen.wechatmp.pay.FacePayEntity;
import com.wangwen.wechatmp.pay.FacePayResult;
import com.wangwen.wechatmp.pay.MyMicroPayRequest;


/**
 * @Author: wangwei
 * @Date: 2019/11/30 10:46
 */

public interface WxpayService  {
    /**
     * 刷脸支付
     * @param facePayEntity
     * @return
     */
    FacePayResult facePay(FacePayEntity facePayEntity);

    /**
     * 扫码支付
     * @param wxPayMicropayRequest
     * @return
     */
    WxPayMicropayResult microPay(MyMicroPayRequest wxPayMicropayRequest);

    /**
     * 查询订单
     * @param request
     * @return
     */
    WxPayOrderQueryResult queryMicroOrder(WxPayOrderQueryRequest request);

    /**
     * 申请退款
     * @param wxPayRefundRequest
     * @return
     */
    WxPayRefundResult refundMoney(WxPayRefundRequest wxPayRefundRequest);
}
